package com.suixun.service.information;

import com.github.pagehelper.PageInfo;
import com.suixun.entity.ZxArticle;
import com.suixun.entity.ext.ExtZxArticleComment;

public interface ZxArticleService {

    PageInfo<ZxArticle> listArticleByTag(Integer page, Integer size, Integer tagId, String orderBy);
    
    PageInfo<ZxArticle> listArticleByNoTag(Integer page, Integer size);
    
    ZxArticle getArticle(Integer articleId);
    
    ZxArticle addArticle(ZxArticle article, Integer tagId);
    
    ZxArticle addArticle(ZxArticle article, Integer tagId, String goodsNumbers);
    
    void delArticle(Integer articleId);
    
    void updateArticle(ZxArticle article);
    
    void updateArticle(ZxArticle article, String goodsNumbers);
    
    void setReadCount(Integer articleId, Integer count);
    
    void setZanCount(Integer articleId, Integer count);
    
    void setUp(Integer articleId);
    
    void changeTag(Integer articleId, Integer tagId);
    
    PageInfo<ExtZxArticleComment> getArticleCommentPage(Integer page, Integer size, Integer articleId, String content, String userName);
    
    void deleteArticleComments(String commentIds);
    
}
